package com.mooc.http;

import java.util.HashMap;
import java.util.Map;

public class CodeStatus {
    private static Map<Integer,String> map = new HashMap<>();

    static {
        map.put(404, "Not Found");
        map.put(200, "OK");
        map.put(500, "Internal Server Error");
    }
    public static String getCodeDesc(int code) {
        return map.get(code);
    }
}
